From: Kevin McKinney Date: Sat, 15 Dec 2012 00:26:46 +0000 (-0500) Subject: Staging: bcm: Fix warning: "do {} while (0) macros should not be semicolon terminated... X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~9397^2~684 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=20dcfc53580b67521a8f6a3375998975955e866e;p=linux-4.9.git Staging: bcm: Fix warning: "do {} while (0) macros should not be semicolon terminated" in led_control.h This patch properly fixes the warning "do {} while (0) macros should not be semicolon terminated" as reported by checkpath.pl Signed-off-by: Kevin McKinney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/led_control.h b/drivers/staging/bcm/led_control.h index 3eef21c80ba1..8ae8e431cec3 100644 --- a/drivers/staging/bcm/led_control.h +++ b/drivers/staging/bcm/led_control.h @@ -22,14 +22,14 @@ (Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \ wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \ wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)); \ - } while (0); + } while (0) #define TURN_OFF_LED(GPIO, index) do { \ UINT gpio_val = GPIO; \ (Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \ wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \ wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)); \ - } while (0); + } while (0) #define B_ULONG32 unsigned long